
Partial Class periodwisereport
    Inherits System.Web.UI.Page
    Dim _EmployeeId As String
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        CrystalReportViewer1.ReportSource = "~/Reports/periodwisereport.rpt"
        CrystalReportViewer1.SelectionFormula = "{Billmaster.BillDate}>=#" & TextBox1.Text & "# and {Billmaster.BillDate}<=#" & TextBox2.Text & "#"
    End Sub

    Protected Sub btn1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn1.Click
        Session("EmpId") = _EmployeeId
        Response.Redirect("../Admin/frmReport.aspx")
    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        _EmployeeId = Session("EmpId")
    End Sub
End Class
